package model

import (
	"me.qqtu.game/model/event"
)

var (
	npcs map[string]*Npc
)

type Npc struct {
	Id     string
	Desc   string
	Events []*event.Event
}

func (n *Npc) RandomEvent() *event.Event {
	return n.Events[0]
}

func GetNpc(id string) *Npc {
	return npcs[id]
}
